How to debug Rules.
getRankingInfo
parameter triggers extra information about Rules:
"promoted": true
field inside the _rankingInfo
object. This field is omitted from regular hits.appliedRules
top-level field. This field is omitted when no Rule has been applied (even if enableRules
is true).params
response field also has search parameters after Rule application, and as such reflects the side-effects of the Rules.
enableRules=false
and compare the results you get with and without Rules.Cause of less accurate results | Solution |
---|---|
Not adding a “remove word” consequence when turning search phrases into query parameters | Add a remove word consequence after any add query parameter consequence |
Not creating an optional filter as a facet | If you want to use an attribute as an optional filter, declare it as a facet |
Not taking advantage of “add search parameter” consequences | See some common uses for this consequence |